<table id="FRAME_USER">
<tr><th colspan="2" class="categories" onmouseover="$once(this).find('div').hoverClass('current')">
	<div>
		<a href="${URL('index')}" class="link"><strong>首页</strong></a>
	</div>
<#assign _current_cid_ = Categories.currentCategory.ID/>
<#list Categories.menu as c>
	<div <#if c.ID==_current_cid_>class="selected"</#if>>
		<a href="${URL('c/', c.ID)}" class="link"><strong>${c.label}</strong></a>
	</div>
</#list>
</th></tr><tr><td colspan="2" class="split">&nbsp;</td></tr><tr>
<#if Client.anonimous>
	<td class="userinfo">
		<@form onsubmit="var c=0; $(this).find('.input').each(
			function(){if($.trim($(this).val())=='')c ++;});if(c!=2)return true;
			$(this).find('span:first').text('请填写您的账号和密码,谢谢~');return false">
			<nobr>
			账号<@input f="j_username" v=Client.request.getParameter('j_username')/>
			密码<@input f="j_password" pwd=true/> 
			<@button>欢迎登陆</@button>
			<span class="warn">
				<@warn f="j_login">|</@warn>
				<@warn f="j_username">|</@warn>
				<@warn f="j_password">|</@warn>
			</span>
			</nobr>
		</@form>
	</td>
	<td class="others">
		<@button goto=URL('register')>免费注册</@button>
	</td>
<#else>
	<td class="userinfo"><nobr>
		欢迎您,${Client.user.name} &nbsp;&nbsp;
		<@button goto=URL('user/detail')>账户</@button>
		<@button goto=URL('user/lents')>出租</@button>
		<@button goto=URL('user/needs')>求租</@button>
		<@button goto=URL('user/contract')>合同</@button>
		<@button goto=URL('user/displayinfo')>修改用户信息</@button>
		<@button goto=URL('user/displaypass')>修改密码</@button>
		</nobr>
	</td>
	<td class="others">
	<nobr>
		<@button goto=URL('register')>免费注册</@button>
		<@button goto=URL('user/logout')>退出</@button>
	</nobr>
	</td>
</#if>
</tr></table> 
